extends ../layout

block scripts
    script(src='/js/background_color.js')
    script(src='/js/fresh_find_doctor_ajax.js')
    link(rel='stylesheet', href='/stylesheets/css/iframe_style.css')
block content
    .contact
        .container
                .col-md-4.cnt-inpt#pid
                    h4#province-h <b>省份</b>
                    - var province = [{area_id : 2,area_name : "北京"},{area_id : 3,area_name : "安徽"},{area_id : 4,area_name : "福建"},{area_id : 5,area_name : "甘肃"},{area_id : 6,area_name : "广东"},{area_id : 7,area_name : "广西"},{area_id : 8,area_name : "贵州"},{area_id : 9,area_name : "海南"},{area_id : 10,area_name : "河北"},{area_id : 11,area_name : "河南"},{area_id : 12,area_name : "黑龙江"},{area_id : 13,area_name : "湖北"},{area_id : 14,area_name : "湖南"},{area_id : 15,area_name : "吉林"},{area_id : 16,area_name : "江苏"},{area_id : 17,area_name : "江西"},{area_id : 18,area_name : "辽宁"},{area_id : 19,area_name : "内蒙古"},{area_id : 20,area_name : "宁夏"},{area_id : 21,area_name : "青海"},{area_id : 22,area_name : "山东"},{area_id : 23,area_name : "山西"},{area_id : 24,area_name : "陕西"},{area_id : 25,area_name : "上海"},{area_id : 26,area_name : "四川"},{area_id : 27,area_name : "天津"},{area_id : 28,area_name : "西藏"},{area_id : 29,area_name : "新疆"},{area_id : 30,area_name : "云南"},{area_id : 31,area_name : "浙江"},{area_id : 32,area_name : "重庆"},{area_id : 33,area_name : "香港"},{area_id : 34,area_name : "澳门"},{area_id : 35,area_name : "台湾"}];
                    select#id_type.form-control(type='input', name='id_type', value='ID TYPE')
                        each item in province
                            - if(location.pid == item.area_id)
                                option(value= item.area_id,selected="true")= item.area_name
                            - else
                                option(value= item.area_id)= item.area_name
                .col-md-12.cnt-inpt.top-nav#cid
                    h4 <b>城市</b>
                    br
                    ul.mouse-on
                        each item,i in city
                            -if(location.cid == item.area_id)
                                li.select-cur(data-selected="1",value= item.area_id)= item.area_name
                            -else
                                li(value= item.area_id)= item.area_name
                .col-md-12.cnt-inpt.top-nav#aid
                    h4 <b>区县</b>
                    br
                    ul.mouse-on
                        - if(location.aid == '0')
                            li.select-cur(data-selected="1",value='0') 全部
                        - else
                            li(value='0') 全部
                        each item in area
                            -if(location.aid == item.area_id)
                                li.select-cur(data-selected="1",value= item.area_id)= item.area_name
                            - else
                                li(value= item.area_id)= item.area_name
                .col-md-12.cnt-inpt.top-nav#fid
                    h4 <b>一级科室</b>
                    br
                    - var first_level = [{ id : 1, name : "内科"},{ id : 2, name : "外科"},{ id : 3, name : "妇产科"},{ id : 4, name : "儿科"},{ id : 5, name : "骨科"},{ id : 6, name : "口腔科"},{ id : 7, name : "眼科"},{ id : 8, name : "中医科"},{ id : 9, name : "精神心理科"},{ id : 10, name : "皮肤性病科"},{ id : 11, name : "传染病科"},{ id : 12, name : "整形科"},{ id : 13, name : "肿瘤科"},{ id : 14, name : "男科"},{ id : 15, name : "疼痛科"},{ id : 16, name : "耳鼻喉科"},{ id : 17, name : "预防保健科"},{ id : 18, name : "重症医学科"},{ id : 19, name : "康复科"},{ id : 20, name : "理疗科"},{ id : 21, name : "临床其他"},{ id : 22, name : "急诊科"},{ id : 23, name : "民族医学科"}];
                    ul.mouse-on
                        each item,i in first_level
                            - if(item.id == department.first_level)
                                li.select-cur(data-selected="1",value= item.id)= item.name
                            - else
                                li(value= item.id)= item.name
                .col-md-12.cnt-inpt.top-nav#sid
                    h4 <b>二级科室</b>
                    br
                    ul.mouse-on
                        -if (department.second_level=='0')
                            li.select-cur(data-selected="1",value='0') 全部
                        -else
                            li(value='0') 全部
                        each item,i in dept_s
                            -if (department.second_level==item.id)
                                li.select-cur(data-selected="1",value=item.id)=item.name
                            -else
                                li(value= item.id)= item.name
                .col-md-12.cnt-inpt.top-nav#d_lev
                    h4 <b>医生职称</b>
                    -var doctor_level=[{level:0,name:"全部"},{level:1,name:"普通医师"},{level:2,name:"主治医师"},{level:3,name:"副主任医师"},{level:4,name:"主任医师"}];
                    br
                    ul.mouse-on
                        each item in doctor_level
                            -if (department.d_level==item.level)
                                li.select-cur(data-selected="1",value= item.level)= item.name
                            -else
                                li(value= item.level)= item.name
                #doctor_list_iframe
                    iframe#doctor_list(src=doc_list_url scrolling='no' width='95%' height='500px')
